package com.jkj.http.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
public class ErrorController {

    @GetMapping("/error400Page")
    public ModelAndView error400Page() {
        return new ModelAndView("400");
    }

    @GetMapping("/error401Page")
    public ModelAndView error401Page() {
        return new ModelAndView("401");
    }

    @GetMapping("/error404Page")
    public ModelAndView error404Page() {
        return new ModelAndView("404");
    }

    @GetMapping("/error500Page")
    public ModelAndView error500Page() {
        return new ModelAndView("500");
    }

}
